import request from '@/utils/request'

// 查询学生考题表列表
export function listSubjectStudent(query) {
  return request({
    url: '/system/subject/student/list',
    method: 'get',
    params: query
  })
}

// 查询学生考题表详细
export function getSubjectStudent(studentId) {
  return request({
    url: '/system/subject/student/' + studentId,
    method: 'get'
  })
}

// 新增学生考题表
export function addSubjectStudent(data) {
  return request({
    url: '/system/subject/student',
    method: 'post',
    data: data
  })
}

// 修改学生考题表
export function updateSubjectStudent(data) {
  return request({
    url: '/system/subject/student',
    method: 'put',
    data: data
  })
}

// 删除学生考题表
export function delSubjectStudent(studentId) {
  return request({
    url: '/system/subject/student/' + studentId,
    method: 'delete'
  })
}
